package org.jeecg.modules.user.member.util;

import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * 业务异常
 * @author 南京宝銮信息科技有限公司
 */
@Data
public class BusinessException extends RuntimeException {
    private String msg;
    private Integer code;
    private List<T> data;

    public BusinessException(Integer errCode, String msg) {
        this.businessException(errCode,msg,null);
    }

    public void businessException(Integer errCode, String msg,List<T> data) {
        this.msg = msg;
        this.code = errCode;
        this.data = data;
    }
}
